Set up OAI eNB and EPC in a single Virtual Machine
eNB and EPC are in a single machine (same host).
Note: the procedure will be almost same if you use physical mahine!
==Connection scenario:==
The benefit of this deployment:
- Easy to setup the develop environment for eNB protocol test.
- This deployment can show the connection between instance with a very easy way
- Really bring internet via wireless to UE!
Hardware requirements:
- Intel based CPU with 4 cores at 2.7GHz or above
- 8G RAM or above
- USB3.0
- Ubuntu 14.04
Install Virtual Machine
I prefer VMware
==Create a New virtual Machine==
==Select the image that we have downloaded==
==Enter the hostname and user name : oai==
==Set whatever you want==
==Hardware setting==
Then start the installation, after the installation we can get into next step.
OAI environment set up and installation
Environment / low-latency kernel setup
1 | always do this when you have a new system |
Fine, we can get into the last step!
check uname -a first, you will have
:::info
If you can’t do the copy and paste from host to guest, try the following command.
:::
1 | sudo apt-get install open-vm-tools-desktop |
Openair-CN (EPC) installation
1 | Enter the script of epc installation |
- Set MySQL password to ==linux==
- Choose apache
- Set phpmyadmin password to ==linux==
1 | Install the package which is needed from epc (including MME and SPGW) |
Openairinterface eNB installation
1 | oai@oai:~/openair-cn/SCRIPTS$ cd ~/openairinterface5g/cmake_targets/ |
Configuration Setting for connect eNB to EPC
eNB configuration1
2
3
4
5
6
7 Copy the configruation files we will use for eNB
oai@oai:~/openairinterface5g/cmake_targets$ cd ~/openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF/
oai@oai:~/openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF$ cp enb.band7.tm1.50PRB.usrpb210.conf ~/
oai@oai:~/openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF$ cd
Modify eNB configuration
oai@oai:~$ vim enb.band7.tm1.50PRB.usrpb210.conf
Edit the following part1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20~
////////// MME parameters:
mme_ip_address = ( { ipv4 = "192.170.0.1";
ipv6 = "192:168:30::17";
active = "yes";
preference = "ipv4";
}
);
NETWORK_INTERFACES :
{
ENB_INTERFACE_NAME_FOR_S1_MME = "eth0:3";
ENB_IPV4_ADDRESS_FOR_S1_MME = "192.170.0.2/24";
ENB_INTERFACE_NAME_FOR_S1U = "eth0:4";
ENB_IPV4_ADDRESS_FOR_S1U = "192.170.1.2/24";
ENB_PORT_FOR_S1U = 2152; # Spec 2152
};
~
Record your eth0 ip address1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18oai@oai:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:0c:29:95:8e:c2
inet addr:192.168.239.128 Bcast:192.168.239.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe95:8ec2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:400004 errors:0 dropped:0 overruns:0 frame:0
TX packets:117545 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:600609444 (600.6 MB) TX bytes:7270652 (7.2 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:651 errors:0 dropped:0 overruns:0 frame:0
TX packets:651 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:72652 (72.6 KB) TX bytes:72652 (72.6 KB)
EPC configuration1
2oai@oai:~$ cd openair-cn/BUILD/EPC/
oai@oai:~/openair-cn/BUILD/EPC$ vim epc.conf.in
Modify the following part:
1 | ~ |
Run OAI !
1 | oai@oai:~/openair-cn/BUILD/EPC$ cd ~/openair-cn/SCRIPTS/ |